package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_member;

import cn.com.api.mapper.ApiT_memberMapper;

import cn.com.api.service.ApiT_memberService;

/**
 * 
 **/
@Service
public class T_memberServiceImplBase {
	@Autowired
	private ApiT_memberMapper apiT_memberMapper;

	// 根据id获取
	public ApiT_member findT_memberById(Integer id) {
		ApiT_member t_member = apiT_memberMapper.findT_memberById(id);
		return t_member;
	}

	// 查看数据集
	public List<ApiT_member> findT_members() {
		List<ApiT_member> t_members = apiT_memberMapper.findT_members();
		return t_members;
	}

	// 添加
	public int insertT_member(ApiT_member t_member) {
		int ret_I = apiT_memberMapper.insertT_member(t_member);
		return ret_I;
	}

	// 修改
	public int updateT_member(ApiT_member t_member) {
		int ret_I = apiT_memberMapper.updateT_member(t_member);
		return ret_I;
	}

	// 删除
	public int deleteT_member(Integer id) {
		int ret_I = apiT_memberMapper.deleteT_member(id);
		return ret_I;
	}

}
